from django.db import models
from base.models.travelSpot import travelSport


class travelSpotLDA(models.Model):
    spot = models.ForeignKey(
        travelSport, on_delete=models.CASCADE, verbose_name="外键")
    score_culture = models.FloatField(verbose_name="'文化'特征分数")
    score_nature = models.FloatField(verbose_name="'自然'特征分数")
    score_food = models.FloatField(verbose_name="'美食'特征分数")

    def __str__(self) -> str:
        return f"{self.spot} |文化:{self.score_culture}|自然:{self.score_nature}|美食:{self.score_food}"
